import request from '@/utils/request'

// 销售数据
export function getSalesman() {
  return request({
    url: '/salesman'
  })
}

// 产品
export function getGood() {
  return request({
    url: '/good'
  })
}

// 订单进度跟踪表
export function getOrderProgress() {
  return request({
    url: '/orderProgress'
  })
}

// 采购未回逾期跟踪表
export function getOverduePurchase() {
  return request({
    url: '/overduePurchase'
  })
}

/**
 * @description: 获取库存仓库详情
 */
export function getStockStatus() {
  return request({
    url: '/stockStatus'
  })
}

/**
 * @description: 获取生产工单的完工状态，完工比例与未完工的比例
 */
export function getCompletionStatus() {
  return request({
    url: '/completionStatus'
  })
}

/**
 * @description: 获取今日的库存情况，入库数量、出库数量、当日未发订单数
 */
export function getTodayStock() {
  return request({
    url: '/getTodayStock'
  })
}

/**
 * @description: 获取厂内生产工单的进度信息
 */
export function getProProduction() {
  return request({
    url: '/getProProduction'
  })
}

/**
 * @description: 获取厂内生产工单的进度信息 荣嘉
 */
export function getProProductionV2() {
  return request({
    url: '/getProProductionV2'
  })
}

/**
 * @description: 获取人员今日的开工次数与工作时长
 * @return {*}
 */
export function getPersonWorkHours() {
  return request({
    url: '/gePersonnelWorkingHours'
  })
}

export function getTodayProcessBaogong1() {
  return request({
    url: '/today_process_baogong1'
  })
}

/**
 * @description: 获取今日的报工数量最多的前6道工序
 * @return {*}
 */
export function getTodayProcessBaogong() {
  return request({
    url: '/today_process_baogong'
  })
}

/**
 * @description: 荣嘉获取今日的报工数量最多的前6道工序
 * @return {*}
 */
export function getTodayProcessBaogongV2() {
  return request({
    url: '/today_process_baogongV2'
  })
}

/**
 * @description: 获取近7天的报工良品数量与不良品数量
 * @return {*}
 */
export function getLatelyReportGoodOrBad() {
  return request({
    url: '/lately/report/goodorbad'
  })
}

/**
 * @description: 近期生产不良原因占比分析
 * @return {*}
 */
export function getLatelyBulangYuanyin() {
  return request({
    url: '/lately/buliangyuanyin'
  })
}
